package com.dome.dao;

import com.dome.mapper.MenuMapper;
import com.dome.mapper.RoleMapper;
import com.dome.model.Menu;
import com.dome.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class MenuDao {
    @Autowired
	MenuMapper menuMapper;
	public void deleteMenuWH(long id) {
		menuMapper.deleteMenuWH(id);
	}

	public List<Menu> selectMenu(long id) {
		return menuMapper.selectMenu(id);
	}

	public void insertMenuWH(List<Menu> menuBJ) {
		menuMapper.insertMenuWH(menuBJ);
	}
}
